package com.salt.modules.sys.feign;

import com.salt.common.constant.Common;
import com.salt.modules.sys.entity.SystemFile;
import com.salt.modules.sys.service.SystemFileService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description
 * @Author salt
 * @Date 2022/4/14
 * @Version 1.0.1
 */
@RestController
@AllArgsConstructor
@RequestMapping(Common.Service.SALT_ADMIN_FILE_URL_PREFIX)
public class SystemFileFeignController {

    private SystemFileService systemFileService;

    @PostMapping("list")
    public List<SystemFile> findList(@RequestBody SystemFile systemFile){
        return systemFileService.findList(systemFile);
    }

    @PostMapping("find")
    public SystemFile find(@RequestBody SystemFile systemFile) {
        return systemFileService.find(systemFile);
    }

}
